package cn.iocoder.yudao.module.eval.controller.admin.certificationscheme.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import cn.idev.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 认定方案表 Response VO")
@Data
@ExcelIgnoreUnannotated
public class CertificationSchemeRespVO {

    @Schema(description = "序号（主键）", requiredMode = Schema.RequiredMode.REQUIRED, example = "19577")
    @ExcelProperty("序号（主键）")
    private Long id;

    @Schema(description = "认定方案名称（如：2024年广东省企业职业技能等级认定方案）", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    @ExcelProperty("认定方案名称（如：2024年广东省企业职业技能等级认定方案）")
    private String name;

    @Schema(description = "附件5模板文件静态路径（固定指向该模板）", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("附件5模板文件静态路径（固定指向该模板）")
    private String templatePath;

    @Schema(description = "模板下载文件名（固定）", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
    @ExcelProperty("模板下载文件名（固定）")
    private String templateFilename;

    @Schema(description = "方案状态：1-启用，0-停用（启用时才显示模板下载）", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty(value = "方案状态：1-启用，0-停用（启用时才显示模板下载）", converter = DictConvert.class)
    @DictFormat("common_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer status;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}